#include <iostream>
#include <memory>
#include "udp_sever.hpp"


static void usage(std::string proc)
{
    std::cout << "\nUsage: " << proc << " port\n" << std::endl;
}

int main(int argc,const char* argv[])
{

    if(argc!=2)
    {
        exit(1);
    }
    uint16_t port = atoi(argv[1]);
    std::unique_ptr<UdpServer> svr(new UdpServer(port));
    svr->initServer();
    svr->Start();

    return 0;
}

